﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;

namespace TMDT.BusinessObjects
{
    public class TinhThanhPho
    {
        public Guid IDTinhThanhPho { get; set; }
        public string TenTinhThanhPho { get; set; }

        public static TinhThanhPho Convert(DataRow row)
        {
            TinhThanhPho tinhThanhPho = new TinhThanhPho();
            tinhThanhPho.IDTinhThanhPho = new Guid(row["IDTinhThanhPho"].ToString());
            tinhThanhPho.TenTinhThanhPho = row["TenTinhThanhPho"].ToString();

            return tinhThanhPho;
        }
    }
}
